package org.jks.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

/**
 * 无人机验收
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "DeviceAcceptance")
public class DeviceAcceptance {
	@Id
	@GeneratedValue(generator = "increment")
	@GenericGenerator(name = "increment", strategy = "increment")
	@Expose
	private long Id;

	@ManyToOne
	@JoinColumn(name = "Device", referencedColumnName = "Id", nullable = false)
	@Expose
	private Device Device;

	@Expose
	private int State;

	@Expose
	private String Reason;

	@Temporal(TemporalType.TIMESTAMP)
	@Expose
	private Date AddTime;

	public long getId() {
		return Id;
	}

	public void setId(long id) {
		Id = id;
	}

	public Device getDevice() {
		return Device;
	}

	public void setDevice(Device device) {
		Device = device;
	}

	public int getState() {
		return State;
	}

	public void setState(int state) {
		State = state;
	}

	public String getReason() {
		return Reason;
	}

	public void setReason(String reason) {
		Reason = reason;
	}

	public Date getAddTime() {
		return AddTime;
	}

	public void setAddTime(Date addTime) {
		AddTime = addTime;
	}

}
